<div class="centercontent tables">
<div class="pageheader notab">
<h1 class="pagetitle">Modul Agenda</h1>
<span class="pagedesc">Digunakan untuk mengelola agenda, mengelola anggota tim dan peminjaman barang yang digunakan.</span> </div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper"><br />
<div class="tombol_tambah" align="right">   
<?php if($this->session->userdata('id_organisasi') == $id_org) { ?>
<button onclick="location.href='<?php echo base_url() ?>index.php/agenda'" class="stdbtn btn_orange"><< Kembali ke Daftar Agenda</button>
<?php }else{ ?>
<button onclick="location.href='<?php echo base_url() ?>index.php/agenda/all'" class="stdbtn btn_orange"><< Kembali ke Daftar Agenda</button>
<?php } ?>
</div>

<div class="contenttitle2">
<h3>Detail Agenda</h3>
</div>
<!--contenttitle-->
<?php 
						foreach($agenda->result() as $row){			
			 		?>
<form action="<?php echo base_url() ?>index.php/agenda" method="post" class="quickform">
	
  <div class="one_half">
        <p>
            <label for="title">Nama Agenda</label>
            <input type="text" class="span2" name="namaAgenda" disabled value="<?php echo $row->nama_agenda; ?>">

        </p>                
        <p>
        	<label>Lokasi</label>
            <input type="text" name="namaAgenda" disabled value="<?php echo $row->lokasi_agenda; ?>">
        </p>
        <p>
        	<label>Link Youtube</label>
            <input type="text" class="span2" name="link" disabled value="<?php echo $row->link_hasil_liputan; ?>">
        </p>
        <p>
        	<label>Catatan</label>
            <input type="text" class="span2" name="catatan" disabled value="<?php echo $row->catatan_tambahan; ?>">
        </p>       
        <p>
                        	<label>Jenis Agenda</label>
                            <span class="field">
                            <select name="jenisAgenda" id="selection">
                            	<option value=""><?php echo $row->jenis_agenda; ?></option>             
                            </select>
                            </span>
                        </p>
    <p>
                        	<label>Status Agenda</label>
                            <span class="field">
                            <select name="statusAgenda" id="selection">
                            	<option value=""><?php echo $row->status_agenda; ?></option>
                            </select>
                            </span>
                        </p>
                        
                        <br />
                        

    </div><!-- one_half -->
    
    <div class="one_half last">
    	<p>
            <label>Tanggal Mulai</label>
            <input type="text" name="namaAgenda" disabled value="<?php echo date('d F Y', strtotime($row->tanggal_mulai)); ?>">
        </p>
        <p>
            <label>Tanggal Selesai</label>
            <input type="text" name="namaAgenda" disabled value="<?php echo date('d F Y', strtotime($row->tanggal_selesai)); ?>">
        </p>
        <p>
            <label for="date">Jam Mulai</label>
           <input type="text" name="namaAgenda" disabled value="<?php echo $row->jam_mulai; ?>">
        </p>
        <p>
            <label for="date">Jam Selesai</label>
           <input type="text" name="namaAgenda" disabled value="<?php echo $row->jam_selesai; ?>">
        </p>
        <p>
        <ul class="buttonlist">
                   		
                   		<li><a href="<?php echo base_url(); ?>index.php/agenda_tim/index/<?php echo $row->id_agenda; ?>" class="btn btn2 btn_world"><span>Daftar Tim</span></a></li>
                   		<?php 
						$role_jabatan = $this->session->userdata('id_jabatan');
						if($this->session->userdata('id_organisasi') == $id_org || $role_jabatan == '1') { ?>						
						<li><a href="<?php echo base_url(); ?>index.php/peminjaman_barang/index/<?php echo $row->id_agenda; ?>" class="btn btn2 btn_bulb"><span>Daftar Barang yang Dipakai</span></a></li>
						<?php } else {
						
						if($role_jabatan == '2' || $role_jabatan == '4' ){
						if($row->id_referensi == ''){ ?>
  <a href="<?php echo base_url().'index.php/agenda/tambahAgendaku/'.$row->id_agenda; ?>" class="btn btn_orange btn_home" onclick="return confirm('Apa Anda yakin memasukkan agenda ini ke agenda anda?')"><span>Tambahkan ke Agendaku</span></a>
  <?php
					  } else { ?>
	<a href="<?php echo base_url().'index.php/agenda/detail_agenda/'.$row->id_referensi; ?>" class="btn btn btn_blue btn_home"><span>Sudah Ditambahkan</span></a>
					 <?php }}}
			  		?>
						
					</ul>
        </p>
    </div><!-- one_half last -->
    
    <br clear="all" />
    
    </form>
<?php }
      ?>
<!--contenttitle--></div>
<!--contentwrapper--> </div>
<!-- centercontent -->